<template>
	<view class="flex.center ">
		<view v-show="showBack" class="titleBack flex.center">
			<image src="/static/yueduBack.png" @click="back"></image>
		</view>
		<view class="bar-title ft18  ftw500 flex.center flex.alcenter pt20" >
			{{title}}
		</view>
		
	</view>
</template>

<script>
	export default {
		props: ['title','showBack'],
		data() {
			return {
				
			}
		},

		methods: {
			back(){
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.bar-title{
		height: 140rpx;
		width: 90%;
	}
	.titleBack{   
		position: absolute;
		left: 0rpx;
		top: 60rpx;
		margin: 15rpx;
		width: 10%;
	}
	.titleBack image{
		height: 20px ;
		width: 20px;
	}
</style>